package com.shop.cereshop.commons.domain.agentProduct;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 代理商购物车信息表实体类
 */
@Data
@TableName("cere_agent_cart")
public class CereAgentCart {

    @TableId(value = "cart_id", type = IdType.AUTO)
    private Long cartId;

    @ApiModelProperty(value = "角色类型 1-代理商 2-业务员· 3-股东")
    private Integer roleType;

    @ApiModelProperty(value = "关联客户id")
    private Long agentUserId;

    @ApiModelProperty(value = "关联商品id")
    private Long agentProductId;

    @ApiModelProperty(value = "关联规格id")
    private Long skuId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "购买数量")
    private Integer number;

    @ApiModelProperty(value = "商品售价")
    private BigDecimal productPrice;

    @ApiModelProperty(value = "图片地址")
    private String image;

    @ApiModelProperty(value = "是否选中 1-是 0-否")
    private Integer selected;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
